<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        input {
            padding: 0;
            border: 0;
        }

        /* focus 焦点 */
        input:focus {
            outline: none;
        }


        .search {
            width: 400px;
            height: 40px;
            border: 1px solid #000;
            margin: 40px auto;
            border-radius: 10px;
            overflow: hidden;
        }

        .inp-text {
            width: 300px;
            height: 40px;
            /* background-color: #ff0; */
            float: left;
        }

        .inp-btn {
            width: 100px;
            height: 40px;
            background-color: blue;
            float: right;

            /* cursor 设置鼠标的形状  pointer手型 */
            cursor: pointer;
        }
    </style>
</head>

<body>

    <!-- <input type="text"> -->
    <!-- 怪异盒模型：内边距和边框没有把盒子撑大 -->
    <!-- <input type="submit" value="百度一下"> -->


    <div class="search">
        <input class="inp-text" type="text">
        <input class="inp-btn" type="submit" value="百度一下">
    </div>


</body>

</html>